public class Student implements Comparable<Student> {
    String name;
    int age;
    private Object obj;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public int compareTo(Student o) {
        //return this.age-o.age;
        return this.name.compareTo(o.name);
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}
